
package cn.com.sbell.vss.csg.vap;

import org.dom4j.Element;

import cn.com.sbell.vss.csg.vap.bean.NTPInfo;
import cn.com.sbell.vss.csg.vsclient.VsClient;
import cn.com.sbell.vss.csg.vsclient.util.PropertiesHolder;

public class GetVsNTP extends ProtectedVsCommander {

	protected Element executeCommand(VsClient vsClient,
			PropertiesHolder holder, Element root) {

		NTPInfo ntpInfo = vsClient.getNTP();
		root.addElement("ntpEnable").setText(
				String.valueOf(ntpInfo.getNtpEnable()));
		root.addElement("ntpHost").setText(toString(ntpInfo.getNtpHost()));
		root.addElement("timeZone").setText(toString(ntpInfo.getTimeZone()));
		return root;
	}

}
